package com.taylover.test.animal;

/**
 * @author xyzZero3
 * @date 2025/4/9 21:35
 */
public abstract class Animal {

    protected int legs;

    protected Animal(int legs) {
        this.legs = legs;
    }

    public abstract void eat();

    public void walk() {
        System.out.println(this.legs + "条退走路");
    }

}
